/**
 * 合同相关控件
 */
interface TcomponentItem {
  componentName: string; //控件的名称
  componentType: string; //控件的类型
  code: string; //控件的唯一code
  showFieldList: string[]; //该控件可修改的props字段
  templateType: number;
  icon: string; //控件的icon
  props: any; //对象 props的默认值
}

const contractControl: TcomponentItem[] = [
  {
    componentName: '我方签约主体',
    componentType: 'COMPANY',
    code: 'COMPANY',
    templateType: 3,
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
  },
  {
    componentName: '业务跟单',
    componentType: 'BUSINESS_COPYING',
    code: 'BUSINESS_COPYING',
    icon: 'icon-yuangong',
    templateType: 3,
    showFieldList: ['placeholder'],
    props: {},
  },
  {
    componentName: '业务经理',
    componentType: 'BUSINESS_MANAGER',
    code: 'BUSINESS_MANAGER',
    icon: 'icon-yuangong',
    templateType: 3,
    showFieldList: ['placeholder'],
    props: {},
  },

  {
    componentName: '签约日期',
    componentType: 'AGENCY_DATE',
    code: 'AGENCY_DATE',
    templateType: 3,
    icon: 'icon-yuangong',
    showFieldList: ['placeholder'],
    props: {},
  },
  {
    componentName: '结束日期',
    componentType: 'END_DATE',
    code: 'END_DATE',
    icon: 'icon-yuangong',
    templateType: 3,
    showFieldList: ['placeholder'],
    props: {},
  },
  {
    componentName: '合同总金额',
    componentType: 'CONTRACT_TOTAL',
    code: 'CONTRACT_TOTAL',
    icon: 'icon-yuangong',
    templateType: 3,
    showFieldList: ['placeholder'],
    props: {},
  },
  {
    componentName: '合同内容',
    componentType: 'CONTRACT_CONTENT',
    code: 'CONTRACT_CONTENT',
    icon: 'icon-yuangong',
    templateType: 3,
    showFieldList: ['placeholder'],
    props: {},
  },
  {
    componentName: '付款方式',
    componentType: 'CONTRACT_PAYMENT',
    code: 'CONTRACT_PAYMENT',
    icon: 'icon-yuangong',
    templateType: 3,
    showFieldList: ['placeholder'],
    props: {},
  },
];

export default contractControl;
